<!DOCTYPE html>
<!--
Author: zouy
Unit: D9lab
Date: 2017-11-03 19:46 
-->
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>chat</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/angular.js/1.4.6/angular.min.js"></script>
    <!--nim-->
    <script src="nim/NIM_Web_NIM_v4.3.0.js"></script>
    <!--my-js-->
    <script src="js/chat1.js"></script>
</head>
<body ng-app="m" ng-controller="c">
<span ng-bind="test"></span>
<div class="container">
    <div class="row">
        <!--用户2 3 4-->
        <div ng-repeat="x in infoObj.user">
            <div class="col-md-6">
                <h3>用户:&nbsp;<span style="color:#ff3833;" ng-bind="x.accid"></span></h3>
                <!--聊天-->
                <div style="margin-top: 20px;">
                <textarea ng-model="x.text" class="form-control" cols="30" rows="10"
                          style="outline: none;resize: none;"></textarea>
                    <div style="margin-top: 20px;">
                        <button ng-click="clearText($index)" class="btn btn-default">清空</button>
                        <button ng-click="preSend($index)" class="btn btn-success">发送(都给用户test01)</button>
                        <span ng-if="$index==0">
                            <button onclick="fileUpload.click()" class="btn" ng-disabled="loginStatus=='离线'">
                            <i style="cursor: pointer;" class="icon-picture icon-2x"></i></button>
                            <input type="file" accept="image/png;image/jpg" id="fileUpload"
                                   onchange="changeInput()" style="display: none;">
                        </span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>